def fun1(class_name, class_parents, attrs):
    newattr = {}
    for name, value in attrs.items():
        print('-->',value)
        if not name.startswith('__'):
            newattr[name.upper()] = value
    return type(class_name, class_parents, newattr)


class A(metaclass=fun1):
    name = 'hah'
    def __init__(self,age):
        self.age = age

a = A()
# print(dir(A))
# # print(A.name)
# print(A.NAME)
